<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="javascript:void(0);">权限组</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a title="添加应用" href="{url('group/edit')}" class="button button-blue win">
        <i class="iconfont icon-tianjia"></i> 添加权限组
        </a>
    </div>
</div>
<div class="m10">
<table class="table table-border">
<thead >
	<tr>
        <th class="w40 fn-tac">#</th>
        <th>权限组名称</th>
        <th class="w150 fn-tac">最后更新时间</th>
        <th class="w60 fn-tac">管理操作</th>
    </tr>
</thead>
<tbody>
{foreach $rel as $rs}
<tr>
	<td class="w20 fn-tac">{$rs[id]}</td>
	<td>{if $rs[id]<>1}<a href="{url('group/edit',array('id'=>$rs[id]))}" title="编辑">{$rs[name]}</a>{else}{$rs[name]}{/if}</td>
	<td class="w150 fn-tac">{date('Y-m-d H:i:s',$rs['uptime'])}</td>
	<td class="w80 fn-tac">
{if $rs[id]<>1} 
    <a title="编辑" href="{url('group/edit',array('id'=>$rs[id]))}" class="win button button-green button-small">
        <i class="iconfont icon-bianji"></i> 
    </a>
    <a title="删除" href="javascript:void(0);" url="{url('group/index',array('id'=>$rs[id],'act'=>'del'))}" class="del button  button-yellow button-small">
    <i class="iconfont icon-shanchu"></i> 
{/if}     
	</td>
</tr>
{/foreach}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','dialog',function(){
	$('.del').click(function(){$(this).del();});
})
</script>
